package dtos;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;




public class UserDTO {
	
	@Pattern(regexp="[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",
            message="invalid email")
	private String username;
	
	@NotEmpty
    private String name;
	
	@NotEmpty
    private String surname;
	
	@NotEmpty
    private String password;
	
	
     

	public String getName() {
        return name;
    }
     
    public void setName(String name) {
        this.name = name;
    }
  
    public String getSurname() {
        return surname;
    }
  
    public void setSurname(String surname) {
        this.surname = surname;
    }
  
    public String getUsername() {
        return username;
    } 
 
    public void setUsername(String username) {
        this.username = username;
    }
  
    public String getPassword() {
        return password;
    }
     
    public void setPassword(String password) {
        this.password = password;
    } 
    
    
}
    
    